projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8ec2bc
)
(readline): When extending the buffer,
author
Richard M. Stallman
<rms@gnu.org>
Tue, 19 Apr 1994 00:17:46 +0000
(
00:17
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 19 Apr 1994 00:17:46 +0000
(
00:17
+0000)
calculate end afresh using the new size.
lib-src/fakemail.c
patch
|
blob
|
history
diff --git
a/lib-src/fakemail.c
b/lib-src/fakemail.c
index 252a7b2ad5b50f3768371cd93eb97586569d9aff..1e5bf53ed4730933827fedd7def82f6850111496 100644
(file)
--- a/
lib-src/fakemail.c
+++ b/
lib-src/fakemail.c
@@
-217,7
+217,7
@@
readline (linebuffer, stream)
linebuffer->size *= 2;
buffer = ((char *) xrealloc (buffer, linebuffer->size));
p += buffer - linebuffer->buffer;
- end
+= buffer - linebuffer->buffer
;
+ end
= buffer + linebuffer->size
;
linebuffer->buffer = buffer;
}
if (c < 0 || c == '\n')